﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="CursoUNICEUB.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="accountInfo">
        <fieldset class="login">
            <legend>Login</legend>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="UserNameLabel" runat="server">Email:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry" Width="231px" MaxLength="30"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail"
                            ErrorMessage="Email." ToolTip="Campo Obrigatório." ValidationGroup="logar">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revEmail" runat="server" ErrorMessage="Email."
                            ControlToValidate="txtEmail" Display="Dynamic" ValidationGroup="logar" Text="*"
                            ToolTip="Email incorreto." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="PasswordLabel" runat="server">Senha:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" CssClass="passwordEntry" TextMode="Password"
                            MaxLength="15" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtPassword"
                            CssClass="failureNotification" ErrorMessage="Senha." ToolTip="Campo obrigatório."
                            ValidationGroup="logar">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <p class="submitButton">
                            <asp:Button ID="LoginButton" runat="server" Text="Logar" ValidationGroup="logar"
                                OnClick="LoginButton_Click" />
                        </p>
                    </td>
                </tr>
            </table>
            <asp:ValidationSummary ID="vSum" runat="server" ShowMessageBox="True" ShowSummary="False"
                HeaderText="Favor verificar os seguintes campos :" ValidationGroup="logar" />
        </fieldset>
    </div>
</asp:Content>
